<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<br>
<br>
<br>
<br>
<h1 style="text-align: center">你好呀,世界</h1>

tip<h3 th:text="#{login.tip}"></h3>
tip<h3 th:text="#{login.password}"></h3>
tip<h3 th:text="#{login.remember}"></h3>
<form th:action="@{/user/login}" method="post">
    用户名 : <input name="username" type="text">
    密码 : <input name="password" type="password">
    <input value="提交" type="submit">
</form>
<!--如果msg的内容不为空才显示消息-->
<h4 th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></h4>
<a  th:href="@{/index.html(language='zh_CN')}">中文</a> <a th:href="@{/index.html(language='en_US')}">English</a>


<form method="get" th:action="@{/add}">
    <input type="submit" value="get方式提交">
</form>
<form method="post" th:action="@{/add}">
    <input type="submit" value="post方式提交">
</form>
</body>
</html>